package com.neouton.crm.transpondEmail.service;


import com.neouton.crm.entity.SysUserEntity;
import com.neouton.crm.transpondEmail.entity.TranspondEmailVO;

import java.util.List;

public interface TranspondEmailService {

    /**
     * 查询转发人邮箱并进行拼接
     * @param approvalId 审批ID
     */
    String selectTranspondEmailStr(Integer approvalId);


    /**
     * 查询转发人域账号并进行拼接
     * @param approvalId 审批ID
     */
    String selectTranspondNameStr(Integer approvalId);

    /**
     * 获取抄送人员集合
     */
    List<SysUserEntity> queryTranspondByApprovalId(Integer approvalId);


    /**
     * 新增转发人
     * @param approvalId 审批ID
     * @param transpondUsers 转发用户集合
     */
    void insertTranspondEmailInfoByUser(Integer approvalId,
                                        List<SysUserEntity> transpondUsers);

    /**
     * 新增转发人
     * @param transpondEmailVO
     */
    void insertTranspondEmailInfoByType(TranspondEmailVO transpondEmailVO);

    String selectTranspondEmailStrByType(Integer typeId, Integer todoType);

    List<SysUserEntity> selectTranspondEmailByType(Integer typeId, Integer todoType);
}